[id].vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  15. <el-breadcrumb-item :to="{ path: '/specialList/7' }">本网招聘</el-breadcrumb-item>
  16. </el-breadcrumb>
  17. </div>
  18. </div>
  19. <div class="projectMoreBox">
  20. <div class="projectMoreTitle">社会保障在线网</div>
  21. <div class="projectMoreText">
  22. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  23. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  24. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  25. </div>
  26. </div>
  27. <!-- 资讯列表 -->
  28. <div class="newsList">
  29. <div class="inner">
  30. <div class="innerLeft">
  31. <div class="innerTitle">本网招聘</div>
  32. <ul class="list">
  33. <li v-for="(item, index) in newsList" :key="index">
  34. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" :title="item.con_title">{{item.con_title}}</NuxtLink>
  35. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  36. </li>
  37. </ul>
  38. <!-- 分页器 -->
  39. <!-- <div class="pagination">
  40. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  41. prev-text="上一页" next-text="下一页" @change="changePage" />
  42. </div> -->
  43. </div>
  44. <div class="innerRight">
  45. <div class="rightMenuTitle">导航列表</div>
  46. <ul>
  47. <li v-for="(item, index) in bottomMenu" :key="index">
  48. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-if="item.id == pageId && item.id != 7" class="active" :title="item.name">{{ item.name }}</NuxtLink>
  49. <NuxtLink :to="`/speciaArticle/${item.id}`" target="_blank" v-else-if="item.id != pageId && item.id != 7" :title="item.name">{{ item.name }}</NuxtLink>
  50. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active" :title="item.name">{{item.name}}</NuxtLink>
  51. <NuxtLink :to="`/specialList/${item.id}`" target="_blank" v-else-if="item.id == 7" :title="item.name">{{item.name}}</NuxtLink>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. <!-- 列表页广告二 -->
  58. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  59. <!-- 页面底部 -->
  60. <HomeFoot1></HomeFoot1>
  61. </div>
  62. </template>
  63. <script setup>
  64. //1.页面依赖 start ---------------------------------------->
  65. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  66. import { ArrowRight } from '@element-plus/icons-vue'
  67. //获得跳转过来的id
  68. const route = useRoute();
  69. const pageId = route.params.id;
  70. const routeHref = route.href;
  71. //1.页面依赖 end ---------------------------------------->
  72. //2.页面数据 start ---------------------------------------->
  73. let adList = ref([]);
  74. //广告
  75. const {data:adData,error:adError} = requestData('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  76. if (adError.value) {
  77. console.error('广告列表请求失败:', adError.value);
  78. } else {
  79. console.log(889900)
  80. if (adData.value && adData.value.data) {
  81. adList.value = adData.value.data;
  82. }
  83. }
  84. //左侧导航
  85. const bottomMenu = ref([]);
  86. async function getPageMenu() {
  87. const { data: mkdata, error: mkdataError } = requestData('/web/getWebsiteFooterCategory', {
  88. method: 'GET',
  89. query: {},
  90. });
  91. if (mkdataError.value) {
  92. //console.log()
  93. } else {
  94. if (mkdata.value) {
  95. bottomMenu.value = mkdata.value.data;
  96. }
  97. }
  98. }
  99. getPageMenu();
  100. //列表
  101. const newsList = ref([]);
  102. let newslists = async () => {
  103. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  104. method: 'GET',
  105. query: {
  106. 'fcat_id':pageId,
  107. },
  108. });
  109. console.log(9999)
  110. newsList.value = listData.data;
  111. console.log(newsList.value)
  112. }
  113. //获得列表
  114. newslists();
  115. //分页
  116. let changePage = (value) => {
  117. console.log("当前页码", value);
  118. page.value = value
  119. console.log(page.value);
  120. newslists()
  121. }
  122. //2.页面数据 end ---------------------------------------->
  123. //3 设置seo信息
  124. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  125. method: 'GET',
  126. query: {},
  127. });
  128. let seoTitle = setData.data.website_head.title;
  129. let seoDescription = setData.data.website_head.description;
  130. let seoKeywords = setData.data.website_head.keywords;
  131. useSeoMeta({
  132. title: seoTitle,
  133. meta: [
  134. { name: 'description', content: seoDescription },
  135. { name: 'keywords', content: seoKeywords }
  136. ]
  137. });
  138. //3.设置seo信息 end---------------------------------------->
  139. </script>
  140. <style lang="less" scoped>
  141. //导航条
  142. .breadcrumb {
  143. width: 100%;
  144. height: 22px;
  145. margin-bottom: 30px;
  146. font-family: Microsoft YaHei, Microsoft YaHei;
  147. font-weight: 400;
  148. font-size: 20px;
  149. color: #666666;
  150. line-height: 23px;
  151. text-align: left;
  152. font-style: normal;
  153. text-transform: none;
  154. :deep(.el-breadcrumb) {
  155. display: inline-block;
  156. vertical-align: -4px;
  157. }
  158. :deep(.el-breadcrumb__inner a),
  159. :deep(.el-breadcrumb__inner.is-link) {
  160. color: #666666;
  161. font-weight: 400;
  162. text-decoration: none;
  163. transition: var(--el-transition-color);
  164. }
  165. span {
  166. font-family: Microsoft YaHei, Microsoft YaHei;
  167. font-weight: 400;
  168. font-size: 20px;
  169. color: #666666;
  170. line-height: 23px;
  171. text-align: left;
  172. font-style: normal;
  173. text-transform: none;
  174. }
  175. span:hover {
  176. color: #666666;
  177. }
  178. .location {
  179. margin-right: 20px;
  180. width: 100px;
  181. height: 22px;
  182. font-family: Microsoft YaHei, Microsoft YaHei;
  183. font-weight: 400;
  184. font-size: 20px;
  185. color: #666666;
  186. line-height: 23px;
  187. text-align: left;
  188. font-style: normal;
  189. text-transform: none;
  190. }
  191. }
  192. // 资讯列表
  193. .newsList {
  194. width: 100%;
  195. height: 675px;
  196. margin-bottom: 70px;
  197. .inner {
  198. width: 1200px;
  199. .innerLeft {
  200. height: 65px;
  201. line-height: 65px;
  202. font-size: 22px;
  203. color: #028E21;
  204. font-weight: bold;
  205. }
  206. .innerTitle {
  207. font-size: 24px;
  208. }
  209. .innerLeft {
  210. height: 675px;
  211. float: right;
  212. >.list {
  213. height: 570px;
  214. margin-bottom: 70px;
  215. border-top: 1px solid #139602;
  216. >li {
  217. width: 790px;
  218. height: 60px;
  219. white-space: nowrap;
  220. overflow: hidden;
  221. text-overflow: ellipsis;
  222. line-height: 60px;
  223. //border-bottom: 1px solid #D9D9D9;
  224. >a {
  225. width: 360px;
  226. height: 26px;
  227. cursor: pointer;
  228. font-family: Microsoft YaHei, Microsoft YaHei;
  229. font-weight: 400;
  230. font-size: 20px;
  231. color: #333333;
  232. line-height: 26px;
  233. text-align: left;
  234. font-style: normal;
  235. text-transform: none;
  236. }
  237. }
  238. >li:hover>a {
  239. color: #139602;
  240. }
  241. >li:nth-child(1)::after,
  242. >li:nth-child(2)::after {
  243. content: "热";
  244. margin-left: 13px;
  245. background: #FF8A37;
  246. color: #fff;
  247. font-size: 14px;
  248. padding: 0px 2px;
  249. }
  250. >li:nth-child(5n) {
  251. border-bottom: 1px solid #D9D9D9;
  252. }
  253. }
  254. >.pagination {
  255. width: 800px;
  256. height: 34px;
  257. margin-left: 141px;
  258. display: flex;
  259. justify-content: center;
  260. margin: 0;
  261. // 鼠标移入后字体颜色
  262. .el-pagination::v-deep :hover {
  263. color: #139609;
  264. }
  265. .el-pagination.is-background::v-deep .btn-next,
  266. .el-pagination.is-background::v-deep .btn-prev {
  267. width: 70px;
  268. height: 34px;
  269. margin: 0px 10px;
  270. border-radius: 4px;
  271. }
  272. .el-pagination.is-background::v-deep .el-pager li {
  273. margin: 0px 10px;
  274. width: 38px;
  275. height: 34px;
  276. border-radius: 4px;
  277. }
  278. .el-pagination.is-background::v-deep .btn-next.is-active,
  279. .el-pagination.is-background::v-deep .btn-prev.is-active,
  280. .el-pagination.is-background::v-deep .el-pager li.is-active {
  281. background-color: #028e21;
  282. color: #fff;
  283. }
  284. }
  285. }
  286. .innerRight {
  287. width: 279px;
  288. .rightMenuTitle {
  289. width: 279px;
  290. height: 69px;
  291. font-size: 22px;
  292. font-weight: bold;
  293. line-height: 58px;
  294. text-align: center;
  295. color: #fff;
  296. background: url("../../public/special/projectMoreTitle.png") no-repeat;
  297. margin-bottom: 30px;
  298. }
  299. ul {
  300. li {
  301. a {
  302. border-left: 5px solid #028E21;
  303. margin-bottom: 15px;
  304. font-size: 22px;
  305. display: block;
  306. height: 61px;
  307. line-height: 61px;
  308. color: #333333;
  309. text-align: center;
  310. background: #FBFBFB;
  311. }
  312. }
  313. }
  314. .active {
  315. border-left: 0;
  316. border: 1px solid #028E21;
  317. background: #fff;
  318. }
  319. }
  320. }
  321. }
  322. //资讯推荐
  323. .zixuntuijian {
  324. width: 100%;
  325. height: 290px;
  326. margin-bottom: 70px;
  327. .innerLeft {
  328. // 左侧
  329. .zixunLeft {
  330. margin-right: 30px;
  331. }
  332. .zixunRight,
  333. .zixunLeft {
  334. float: left;
  335. width: 380px;
  336. height: 290px;
  337. // 标题部分
  338. >.title {
  339. width: 380px;
  340. }
  341. >.title>h3 {
  342. height: 36px;
  343. font-family: Source Han Sans, Source Han Sans;
  344. font-weight: bold;
  345. font-size: 24px;
  346. color: #000000;
  347. line-height: 28px;
  348. text-align: left;
  349. font-style: normal;
  350. text-transform: none;
  351. border-bottom: 1px solid #139602;
  352. }
  353. >.title>h3>span {
  354. float: right;
  355. width: 56px;
  356. height: 20px;
  357. line-height: 24px;
  358. font-weight: 400;
  359. font-size: 14px;
  360. color: #999999;
  361. font-style: normal;
  362. text-transform: none;
  363. }
  364. .photo_text {
  365. >li:first-child {
  366. width: 380px;
  367. height: 120px;
  368. margin-top: 20px;
  369. margin-bottom: 15px;
  370. position: relative;
  371. >img {
  372. float: left;
  373. width: 160px;
  374. height: 120px;
  375. }
  376. >div {
  377. float: left;
  378. width: 220px;
  379. height: 120px;
  380. padding-left: 15px;
  381. padding-top: 6px;
  382. box-sizing: border-box;
  383. background-color: #f6f6f6;
  384. >h5 {
  385. width: 200px;
  386. height: 54px;
  387. display: -webkit-box;
  388. -webkit-box-orient: vertical;
  389. -webkit-line-clamp: 2;
  390. overflow: hidden;
  391. text-overflow: ellipsis;
  392. word-break: break-all;
  393. font-family: Source Han Sans, Source Han Sans;
  394. font-weight: 500;
  395. font-size: 18px;
  396. color: #333333;
  397. line-height: 26px;
  398. text-align: left;
  399. font-style: normal;
  400. text-transform: none;
  401. }
  402. >p {
  403. width: 200px;
  404. height: 22px;
  405. line-height: 20px;
  406. position: absolute;
  407. bottom: 5px;
  408. right: 0;
  409. >span {
  410. display: inline-block;
  411. // width: 100px;
  412. height: 18px;
  413. font-family: Source Han Sans, Source Han Sans;
  414. font-weight: 400;
  415. font-size: 12px;
  416. color: #999999;
  417. text-align: left;
  418. line-height: 14px;
  419. font-style: normal;
  420. text-transform: none;
  421. }
  422. >span:last-child {
  423. // width: 90px;
  424. text-align: right;
  425. margin-left: 20px;
  426. }
  427. }
  428. }
  429. }
  430. >li {
  431. width: 380px;
  432. height: 25px;
  433. white-space: nowrap;
  434. overflow: hidden;
  435. text-overflow: ellipsis;
  436. font-family: PingFang SC, PingFang SC;
  437. font-weight: 500;
  438. font-size: 18px;
  439. color: #333333;
  440. line-height: 21px;
  441. text-align: left;
  442. font-style: normal;
  443. text-transform: none;
  444. margin-bottom: 10px;
  445. em {
  446. display: inline-block;
  447. width: 8px;
  448. height: 8px;
  449. border-radius: 8px;
  450. margin-right: 10px;
  451. background-color: #d9d9d9;
  452. }
  453. }
  454. >li:hover {
  455. color: #139602;
  456. }
  457. >li:hover em {
  458. background-color: #139602;
  459. }
  460. }
  461. }
  462. }
  463. .innerRight {
  464. width: 381px;
  465. height: 290px;
  466. background-color: #fbfbfb;
  467. >.title {
  468. width: 380px;
  469. height: 40px;
  470. line-height: 40px;
  471. border-top: 1px solid #139602;
  472. border-bottom: 1px solid #e7e7e7;
  473. >h4 {
  474. font-family: Microsoft YaHei, Microsoft YaHei;
  475. font-weight: 400;
  476. margin-left: 20px;
  477. font-size: 20px;
  478. color: #000000;
  479. text-align: left;
  480. font-style: normal;
  481. text-transform: none;
  482. >span {
  483. float: right;
  484. font-family: Microsoft YaHei, Microsoft YaHei;
  485. font-weight: 400;
  486. font-size: 14px;
  487. margin-right: 10px;
  488. color: #999999;
  489. text-align: left;
  490. font-style: normal;
  491. text-transform: none;
  492. }
  493. }
  494. }
  495. .rightList {
  496. height: 540px;
  497. margin-top: 20px;
  498. >li {
  499. height: 100px;
  500. margin-bottom: 10px;
  501. >img {
  502. width: 150px;
  503. height: 100px;
  504. }
  505. >p {
  506. width: 219px;
  507. height: 100px;
  508. padding-left: 12px;
  509. font-family: PingFang SC, PingFang SC;
  510. font-weight: 400;
  511. font-size: 16px;
  512. color: #333333;
  513. line-height: 22px;
  514. text-align: left;
  515. font-style: normal;
  516. text-transform: none;
  517. }
  518. >p:hover {
  519. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  520. }
  521. }
  522. }
  523. }
  524. }
  525. .projectMoreBox {
  526. width: 1200px;
  527. margin: 0 auto;
  528. height: 452px;
  529. margin-top: 20px;
  530. background: url("../../public/special/projectMoreBg.png") no-repeat;
  531. margin-bottom: 40px;
  532. .projectMoreTitle {
  533. color: #028E21;
  534. padding-top: 45px;
  535. font-size: 26px;
  536. padding-left: 204px;
  537. }
  538. .projectMoreText {
  539. padding: 40px;
  540. font-size: 20px;
  541. color: #333333;
  542. text-indent: 2em;
  543. line-height: 36px;
  544. }
  545. }
  546. </style>